home *** CD-ROM | disk | FTP | other *** search
/ Revista do CD-ROM 101 / CD-ROM 101.iso / compl / maya5ple / Install_MayaPLE5_English.exe / Maya / Data1.cab / createDefaultProject.mel < prev    next >
Encoding:
Text File  |  2003-07-17  |  3.1 KB  |  108 lines

  1. // Copyright (C) 1997-2002 Alias|Wavefront,
  2. // a division of Silicon Graphics Limited.
  3. //
  4. // The information in this file is provided for the exclusive use of the
  5. // licensees of Alias|Wavefront.  Such users have the right to use, modify,
  6. // and incorporate this code into other products for purposes authorized
  7. // by the Alias|Wavefront license agreement, without fee.
  8. //
  9. // ALIAS|WAVEFRONT DISCLAIMS ALL WARRANTIES WITH REGARD TO THIS SOFTWARE,
  10. // INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS, IN NO
  11. // EVENT SHALL ALIAS|WAVEFRONT BE LIABLE FOR ANY SPECIAL, INDIRECT OR
  12. // CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM LOSS OF USE,
  13. // DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR OTHER
  14. // TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
  15. // PERFORMANCE OF THIS SOFTWARE.
  16. //
  17. //
  18. //  Alias|Wavefront Script File
  19. //  MODIFY THIS AT YOUR OWN RISK
  20. //
  21. //  Creation Date:  March 27, 1997
  22. //    Author:         dsw
  23. //
  24. //  Description:
  25. //      Create the default project under the users maya directory.
  26. //        It is run in both batch and GUI modes.
  27. //
  28. //  Input Arguments:
  29. //      None.
  30. //
  31. //  Return Value:
  32. //      None.
  33. //
  34. //  Note:
  35. //      None.
  36. // 
  37.  
  38. //global proc createDefaultProject ( )
  39. //
  40. //    Description:
  41. //        Under the current working directory create a default
  42. //        project layout.
  43. //
  44. {
  45.     string $appDir = `internalVar -uad`;
  46.     string $projectsDir = `internalVar -uwd`;
  47.  
  48.     // Make sure the app directory exists
  49.     workspace -cr $appDir;
  50.  
  51.     // Create the projects directory
  52.     workspace -cr $projectsDir;
  53.     workspace -dir $projectsDir;
  54.  
  55.     // Create all the default entries
  56.     workspace -cr "default";
  57.     workspace -dir "default";
  58.  
  59.     workspace -rd `workspace -q -dir`;
  60.  
  61.     // Scene segment locations.
  62.     workspace -ot "scene" "scenes";
  63.     workspace -cr "scenes";
  64.  
  65.     // Project Data
  66.     workspace -fr "depth" "renderData/depth";
  67.     workspace -cr "renderData/depth";
  68.     workspace -fr "iprImages" "renderData/iprImages";
  69.     workspace -cr "renderData/iprImages";
  70.     workspace -fr "lights" "renderData/shaders";
  71.     workspace -cr "renderData/shaders";
  72.     workspace -rt "renderScenes" "renderScenes";
  73.     workspace -cr "renderScenes";
  74.     workspace -fr "sourceImages" "sourceimages";
  75.     workspace -cr "sourceimages";
  76.     workspace -fr "textures" "textures";
  77.     workspace -cr "textures";
  78.     workspace -rt "images" "images";
  79.     workspace -cr "images";
  80.     
  81.     workspace -fr "particles" "particles";
  82.     workspace -cr "particles";
  83.     workspace -fr "clips" "clips";
  84.     workspace -cr "clips";
  85.     workspace -fr "audio" "sound";
  86.     workspace -cr "sound";
  87.     
  88.     workspace -fr "mel" "mel";
  89.  
  90.     // Data transfer locations.
  91.     workspace -fr "image" "images";
  92.     workspace -fr "DXF" "data";
  93.     workspace -fr "DXFexport" "data";
  94.     workspace -fr "OBJ" "data";
  95.     workspace -fr "OBJexport" "data";
  96.     workspace -fr "IGES" "data";
  97.     workspace -fr "aliasWire" "data";
  98.     workspace -fr "RIB" "data";
  99.     workspace -fr "RIBexport" "data";
  100.     workspace -fr "move" "data";
  101.     workspace -fr "animImport" "data";
  102.     workspace -fr "animExport" "data";
  103.     workspace -fr "diskCache" "data";
  104.     workspace -cr "data";
  105.  
  106.     workspace -s;
  107. }
  108.